package com.duoec.dw.lineage.dto;

public class TableFieldIndex implements Comparable<TableFieldIndex> {
    private Integer index;
    private String columnName;
    private String columnComment;
    private String columnType;

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    @Override
    public int compareTo(TableFieldIndex o) {
        return Integer.compare(this.index, o.getIndex());
    }
}
